cmake_minimum_required(VERSION 3.5)

#project name
project(PadLog)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11  -pthread" )
#may debug
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

#include directories
include_directories(
    "${PROJECT_SOURCE_DIR}"
    )
#add subdirectory
#find cur-path's all src-file and save to DIR_SRCS
aux_source_directory(. DIR_SRCS)
#add src-file
add_executable(Test ${DIR_SRCS})

